.class final Lcom/ninesky/browser/ax;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lcom/ninesky/browser/do;

.field private final synthetic b:Lcom/ninesky/widget/l;

.field private final synthetic c:I


# direct methods
.method constructor <init>(Lcom/ninesky/browser/do;Lcom/ninesky/widget/l;I)V
    .locals 0

    iput-object p1, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iput-object p2, p0, Lcom/ninesky/browser/ax;->b:Lcom/ninesky/widget/l;

    iput p3, p0, Lcom/ninesky/browser/ax;->c:I

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 7

    iget-object v0, p0, Lcom/ninesky/browser/ax;->b:Lcom/ninesky/widget/l;

    invoke-virtual {v0}, Lcom/ninesky/widget/l;->c()V

    iget-object v0, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget-object v1, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v1, v1, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v1}, Lcom/ninesky/browser/BookmarksActivity;->c(Lcom/ninesky/browser/BookmarksActivity;)Lcom/ninesky/browser/du;

    move-result-object v1

    iget v2, p0, Lcom/ninesky/browser/ax;->c:I

    invoke-virtual {v1, v2}, Lcom/ninesky/browser/du;->b(I)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v2, v2, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget v3, p0, Lcom/ninesky/browser/ax;->c:I

    invoke-virtual {v2, v3}, Lcom/ninesky/browser/BookmarksActivity;->a(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v3, v3, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    iget v4, p0, Lcom/ninesky/browser/ax;->c:I

    invoke-virtual {v3, v4}, Lcom/ninesky/browser/BookmarksActivity;->b(I)Landroid/graphics/Bitmap;

    move-result-object v3

    iget-object v4, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v4, v4, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v4}, Lcom/ninesky/browser/BookmarksActivity;->c(Lcom/ninesky/browser/BookmarksActivity;)Lcom/ninesky/browser/du;

    move-result-object v4

    iget v5, p0, Lcom/ninesky/browser/ax;->c:I

    invoke-virtual {v4, v5}, Lcom/ninesky/browser/du;->d(I)Landroid/graphics/Bitmap;

    move-result-object v4

    new-instance v5, Landroid/content/Intent;

    const-string v6, "android.intent.action.SEND"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v6, "text/plain"

    invoke-virtual {v5, v6}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string v6, "android.intent.extra.TEXT"

    invoke-virtual {v5, v6, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "android.intent.extra.SUBJECT"

    invoke-virtual {v5, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "share_favicon"

    invoke-virtual {v5, v1, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const-string v1, "share_screenshot"

    invoke-virtual {v5, v1, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    const v1, 0x7f0700db

    :try_start_0
    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v5, v1}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v0, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    invoke-static {v0}, Lcom/ninesky/browser/BookmarksActivity;->a(Lcom/ninesky/browser/BookmarksActivity;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "MostVisited"

    const-string v2, "ShareLink"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lcom/ninesky/browser/ax;->a:Lcom/ninesky/browser/do;

    iget-object v0, v0, Lcom/ninesky/browser/do;->a:Lcom/ninesky/browser/BookmarksActivity;

    const-string v1, "Bookmarks"

    const-string v2, "ShareLink"

    invoke-static {v0, v1, v2}, Lcom/mobclick/android/c;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :catch_0
    move-exception v0

    goto :goto_0
.end method
